<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<div id="createFolder" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
                    
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Nuevo</h3>
    </div>
    <div class="modal-body">
        <?php

        echo $this->Form->create('Upload', array('url' => '../uploads/createFolder', 'class'=>'form-horizontal'));
        ?> 
        <fieldset> 

        <?php 
            
            $optionsLabel = array('class' => 'control-label','text'=>'Folder');
            $options = array('div' => 'control-group','label'=>$optionsLabel,'class'=>'controls');
            echo $this->Form->input('filename',$options);
            
            echo $this->Form->input('project_id',array('type'=>'hidden','value'=>$project['Project']['id']));
            echo $this->Form->input('folder_id',array('type'=>'hidden','value'=>$folderAct));

        ?>

        </fieldset>

    </div>
    <div class="modal-footer">
        <div class="row-fluid " >
            <div class="span12">
                <div class="span8">                      
                </div>
                <div class="span2">
                    <button class="btn" data-dismiss="modal">Cancelar</button>
                </div>
                <div class="span2">
                    <?php
                    $optionsBtn = array('label' => 'Guardar','class' => 'btn');
                   
                    echo $this->Form->end($optionsBtn);
                    
                    ?>
                    
                </div>
            </div>
        </div>
    </div>
</div>